package org.example.model;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * 客户（一方）
 * @author Administrator
 *
 */
public class Shop {

    private Integer id;//对应表的主键
    private String name;
    private Integer age;
    private Set<Order> orderSet=new LinkedHashSet<Order>();//关联属性
    public Shop() {
    }
    public Shop(String name, Integer age) {
        super();
        this.name = name;
        this.age = age;
    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public Set<Order> getOrderSet() {
        return orderSet;
    }
    public void setOrderSet(Set<Order> orderSet) {
        this.orderSet = orderSet;
    }


}
